# -*- coding:utf-8 -*-
# File Name:temp.py
# Author:jing
# Date:2018/12/21
from contextlib import redirect_stdout
from io import StringIO

__author__ = 'jing'

with StringIO() as s, redirect_stdout(s):
    print('hhh')
    value = s.read()
print(value)
